export default {
    //侧边栏激活切换
    changeActive (state,path){
        state.defaultActive = path
        try {
            localStorage.defaultActive = path
        } catch (e){}
        
    },
    changeCurrentPage (state,page){
        state.currentPage = page
        try {
            localStorage.currentPage = page
        } catch (e){}
        
    },
    changeUserName (state,userName){
        state.userName =userName
        try {
            localStorage.userName = userName
        } catch (e){}
        
    },
    changeScope (state,scope){
        state.scope = scope
        try {
            localStorage.scope = scope
        } catch (e){}
    },
    changeInfo (state,infoChange){
        state.infoChange = infoChange
    },

    changeactivitedId (state,activitedId){
        state.activitedId = activitedId
    }

}